<?php
include("./config/session-action.php");
include("./config/config.inc.php");
include("./config/QuickMySQL.php");
include("./config/function.inc.php");

/*发送邮件处理类*/
class CSendEMailLogAction extends JsonBase
{
	/* 获取远程的HTML数据 */
	function Ondelete(){
		if( !isset($_POST['id']) ){
			$this->json["msg"] = "未按定要删除的项";	
			return;
		}
		$id = (int)$_POST['id'];
		// 要看是否在发送队列中
		if( !CheckSendMail() ){
			if(QuickMySQL::quickExecute("delete from t_sendmail_queue where id={$id}")){
				$this->json["success"] = true;
				$this->json["msg"] = "删除成功";
			} else {
				$this->json["msg"] = "删除失败";
			}
		} else {
			$this->json["msg"] = "正在发送邮件中，拒绝操作。请稍后重试";
		}
	}
}

/*发送邮件操作*/
$cc = new CSendEMailLogAction();

?>